from zkpylons.tests.model import *

class TestRegistrationTable(TableTest):
    """Test the ``registration`` table.

    This table stores registration details.
    """
    table = model.registration.tables.registration
    samples = [dict(person_id=1,
                    address1='a11',
                    address2='a12',
                    city='city1',
                    state='state1',
                    country='country1',
                    postcode='postcode1',
                    phone='+61 2 37',
                    company='company1',
                    shell='shell1',
                    shelltext='shelltext1',
                    editor='editor1',
                    editortext='editortext1',
                    distro='distro1',
                    distrotext='distrotext1',
                    vcs='vcs1',
                    vcstext='vcstext1',
                    type='type1',
                    voucher_code='voucher_code1',
                    teesize='teesize1',
		    extra_tee_count=1,
		    extra_tee_sizes='extra_tee_sizes1',
                    dinner=1,
                    diet='diet1',
                    special='special1',
                    opendaydrag=1,
                    partner_email='partneremail1',
                    kids_0_3=1,
                    kids_4_6=1,
                    kids_7_9=1,
                    checkin=1,
                    checkout=1,
                    lasignup=1,
                    announcesignup=1,
                    delegatesignup=1,
                    prevlca=[99],
                    miniconf=['Debian'],
                    ),
               dict(person_id=2,
                    address1='a21',
                    address2='a22',
                    city='city2',
                    state='state2',
                    country='country2',
                    postcode='postcode2',
                    phone='+61 2 42',
                    company='company2',
                    shell='shell2',
                    shelltext='shelltext2',
                    editor='editor2',
                    editortext='editortext2',
                    distro='distro2',
                    distrotext='distrotext2',
                    vcs='vcs2',
                    vcstext='vcstext2',
                    type='type2',
                    voucher_code='voucher_code2',
                    teesize='teesize2',
		    extra_tee_count=2,
		    extra_tee_sizes='extra_tee_sizes2',
                    dinner=2,
                    diet='diet2',
                    special='special2',
                    opendaydrag=2,
                    partner_email='partneremail2',
                    kids_0_3=2,
                    kids_4_6=2,
                    kids_7_9=2,
                    checkin=2,
                    checkout=2,
                    lasignup=0,
                    announcesignup=0,
                    delegatesignup=0,
                    prevlca=['01'],
                    miniconf=['Embedded'],
                    ),
                ]
    uniques = ['person_id']
